#include <stdio.h>
int main()
{
    int a = 2;
    

    
    int tep = 0;
    int sum = 0;
    for (int j = 0; j < 5;  j++)
    {
        //sum += tep;
        tep = tep * 10 + a;
        sum += tep;
        
    }
    printf("%d", sum);
    return 0;
}